package com.tyc.wx.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: java类作用描述
 * @Author: tyc
 * @CreateDate: 2020/12/29 15:05
 */
@ConfigurationProperties(prefix = "wx")
public class WxProperties {
    //公众号服务器验证token
    private   String token;

    //微信公众号的ID
    private String public_appid;

    //微信公众号的SECRT
    private String public_secret;

    //微信公众号模板消息ID
    private   String public_templateid;

    //小程序的ID
    private String mini_appid;

    //小程序的appsecret
    private   String mini_secret;

    //微信小程序案件处理完成通知模板id
    private  String mini_templateid;

    //商户id
    private String mchid;

    //支付
    private String appkey;

    private String mini__template_messageUrl = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN";

    /*获取公众号用户基本信息路径*/
    private static final String public_userinfo_url = " https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }



    public String getPublic_secret() {
        return public_secret;
    }

    public void setPublic_secret(String public_secret) {
        this.public_secret = public_secret;
    }

    public String getPublic_templateid() {
        return public_templateid;
    }

    public void setPublic_templateid(String public_templateid) {
        this.public_templateid = public_templateid;
    }



    public String getMini_secret() {
        return mini_secret;
    }

    public void setMini_secret(String mini_secret) {
        this.mini_secret = mini_secret;
    }

    public String getMini_templateid() {
        return mini_templateid;
    }

    public void setMini_templateid(String mini_templateid) {
        this.mini_templateid = mini_templateid;
    }


    public String getPublic_appid() {
        return public_appid;
    }

    public void setPublic_appid(String public_appid) {
        this.public_appid = public_appid;
    }

    public String getMini_appid() {
        return mini_appid;
    }

    public void setMini_appid(String mini_appid) {
        this.mini_appid = mini_appid;
    }

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getMini__template_messageUrl() {
        return mini__template_messageUrl;
    }

    public void setMini__template_messageUrl(String mini__template_messageUrl) {
        this.mini__template_messageUrl = mini__template_messageUrl;
    }

    public static String getPublic_userinfo_url() {
        return public_userinfo_url;
    }
}
